package semana1.estructurasDeControl.ej09;

import java.util.Random;

public class Ej09 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Random r = new Random();
		int n1 = r.nextInt(20) + 1;
		int n2 = r.nextInt(20) + 1;
		int n3 = r.nextInt(20) + 1;
		
		
		System.out.println(n1);
		System.out.println(n2);
		System.out.println(n3);
		
		if (n1 > n2 && n1 > n3) {
			System.out.println("El mayor es: "+n1);
		} else {
			if(n2 > n3 && n2 > n1){
			System.out.println("El mayor es: "+n2);
		}
			else{
				if(n3 > n2 && n3 > n1){
				System.out.println("El mayor es: "+n3);
				}
			}
		}
	}

}
